fhg2a.relogo
[Groovy] Class IdealFreeDistribution

java.lang.Object
  fhg2a.ReLogoTurtle
      Tribe
          IdealFreeDistribution

class IdealFreeDistribution
extends Tribe

Tribe that relies on wild cereal, prey and farmed cereal for sustenance, and has perfect global knowledge. Divides annual foraging time between all food types based on their relative net acquisition rates.


Method Summary
java.lang.Object forage()

Forage one year's worth of prey, wild cereal and farmed cereal.

java.lang.Object move()

Move tribe to the best patch on the grid (including patch it is on).

 
Methods inherited from class Tribe
agentOnDesert, agentOnLush, agentOnMiddle, birthsOnDesert, birthsOnLush, birthsOnMiddle, cull, deathsOnDesert, deathsOnLush, deathsOnMiddle, forage, migrationsToDesert, migrationsToLush, migrationsToMiddle, move, reproduce, reset, step
 

Method Detail

forage

java.lang.Object forage()
Forage one year's worth of prey, wild cereal and farmed cereal. Decrease population if enough food is not gathered.


move

java.lang.Object move()
Move tribe to the best patch on the grid (including patch it is on). Patches are ranked by prey density then cereal density.